#include <netinet/ip.h>
#include <sys/time.h>
#include "display.h"

void print_flow(flow_t* f)
{
  printf("[%ld.%ld]", (f->timestamp).tv_sec, (f->timestamp).tv_usec);
  printf("%s(", inet_ntoa(f->saddr));
  printf("%u)-<", f->sport);
  printf("%d>->", f->protocol);
  printf("%s", inet_ntoa(f->daddr));
  printf("(%u)\n", f->dport);
}
